<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>贪婪和惰性</title>
    <style>
        section {
            padding: 10px;
        }

        table {
            border-collapse: collapse;
        }

        td {
            border: 1px solid rgba(0, 0, 0, 0.2);
            padding: 10px 20px;
        }

        code {
            font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
            color: #c90b33;
            background-color: rgba(27, 31, 35, 0.05);
            padding: 3px 5px;
        }

        li {
            margin-bottom: 5px;
        }
    </style>
</head>
<body>
<h1>贪婪和惰性</h1>
<section>
    <ul>
        <li>贪婪（greedy）匹配：<a href="http://coding.imweb.io/demo/p7/regexp-repeat.html" target="_blank" title="普通量词">普通量词</a></li>
        <li>
            惰性（lazy）匹配：普通量词加<code>?</code>
            <ul>
                <li>非贪婪，non-greedy</li>
            </ul>
        </li>
    </ul>
</section>
</body>
</html>